package com.kingdee.jdy.controller;

import com.kingdee.jdy.util.AccessTokenUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccessTokenController {

    @ResponseBody
    @RequestMapping(path = "/getAccessToken")
    public String getAccessToken() {

        String token = "";
        try {
            token = AccessTokenUtil.GetAccessToken();
        } catch (Exception e) {
            e.printStackTrace();
        }

        return token;
    }

}
